import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)


export default new Router({
    routes: [
        {
            path: '/',
            name: 'layout',
            redirect:'/stand',
            // component:index
        },

        {   //品牌规范
            path:'/stand', 
            name:'standIndex',
            component:()=>import('@/views/standard/brandList.vue')
        },

        {   //体验规范
            path:'/exper',
            name:'standExper',
            component:()=>import('@/views/standard/experienceList.vue')
        },
        
        {   //创建规范
            path:'/addStand',
            name:'addStand',
            component:()=>import('@/views/standard/createStand.vue')
        },

        {   //规范详情
            path:'/standDetail',
            name:'standDetail',
            component:()=>import('@/views/standard/standContent.vue')
        },

        {   //我的规范
            path:'/myStand',
            name:'myStand',
            component:()=>import('@/views/standard/myStand.vue')
        },

        {   //规范搜索结果
            path:'/resultStand',
            name:'resultStand',
            component:()=>import('@/views/standard/resultStand.vue')
        },

        {   //授权入口
            path:'/auth',
            name:'authIndex',
            component:()=>import('@/views/auth/authIndex.vue')
        },

        {   //授权申请
            path:'/authApply',
            name:'authApply',
            component:()=>import('@/views/auth/authApply.vue')
        },

        {   //授权进度
            path:'/authProgress',
            name:'authProgress',
            component:()=>import('@/views/auth/authProgress.vue')
        },

        {   //授权管理中心
            path:'/authManage',
            name:'authManage',
            component:()=>import('@/views/auth/authManage.vue')
        },

        {
            path:"/admin",
            name:'admin',
            redirect:'/admin/brandMan',
            component:()=>import('@/views/adminIndex.vue'),
            children:[
                {   //品牌规范管理
                    path:'brandMan',
                    name:'brandMan',
                    component:()=>import('@/views/standard/brandMan.vue')
                },
                {   //体验规范管理
                    path:'experienceMan',
                    name:'experienceMan',
                    component:()=>import('@/views/standard/experienceMan.vue')
                },
                {   //成员管理
                    path:'member',
                    name:'member',
                    component:()=>import('@/views/member/index.vue')
                }
            ]
        },

        // {
        //     path:'/404',
        //     name:'404',
        //     component:()=>import()
        // }
    ]
})